package com.fireXXX.job.analysis.datamgr.service;

import com.fireXXX.job.analysis.data.api.job.Job;
import com.fireXXX.job.analysis.datamgr.dao.JobRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class JobService {

    @Resource
    private JobRepository jobRepository;

    public Job get(Long id) {
        return jobRepository.findById(id).get();
    }

    public void save(Job job) {
        jobRepository.save(job);
    }

}
